From: Varun Wadekar Date: Wed, 20 Sep 2017 22:09:38 +0000 (-0700) Subject: Tegra: call 'early_init' handler earlier during boot X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=01da3bd2db5b9940fda3c84e31486473d75d185f;p=project%2Fbcm63xx%2Fatf.git Tegra: call 'early_init' handler earlier during boot This patch calls the 'early_init' handler earlier during boot. This allows the platforms using Tegra186 onwards to init the BPMP interface earlier. Change-Id: I0d540df39de7864ce9051ebe11eca5432c462ebf Signed-off-by: Varun Wadekar --- diff --git a/plat/nvidia/tegra/common/tegra_bl31_setup.c b/plat/nvidia/tegra/common/tegra_bl31_setup.c index afb10fef..4712b8ab 100644 --- a/plat/nvidia/tegra/common/tegra_bl31_setup.c +++ b/plat/nvidia/tegra/common/tegra_bl31_setup.c @@ -227,6 +227,9 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, */ tegra_delay_timer_init(); + /* Early platform setup for Tegra SoCs */ + plat_early_platform_setup(); + /* * Do initial security configuration to allow DRAM/device access. */ @@ -269,9 +272,6 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, } } - /* Early platform setup for Tegra SoCs */ - plat_early_platform_setup(); - /* * Add timestamp for platform early setup exit. */